package com.ruicar.afs.cloud.batch.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruicar.afs.cloud.batch.enums.RunStatus;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumDeserializer;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumSerializer;
import lombok.Data;

@TableName("afs_batch_log_group")
@Data
public class AfsBatchLogGroup {
    @TableId(type = IdType.AUTO)
    private Long id ;
    /** 批量编号 */
    private String batchNo ;
    /** 系统名称 */
    private String systemName ;
    /** 批量日期 */
    private String batchDate ;
    /** 运行状态;R-运行中,F-运行结束,E-运行出错 */
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    @JSONField(serializeUsing = AfsEnumSerializer.class,deserializeUsing = AfsEnumDeserializer.class)
    private RunStatus batchStatus ;
    /** 启动时间 */
    private String startTime ;
    /** 结束时间 */
    private String finishTime ;
}
